<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		*{
			margin: 0px;
			padding: 0px;
			list-style: none;
		}
		.out{
			width: 980px;
			height: 240px;
			overflow: hidden;
			margin: 0 auto;
		}
		.list{
			width: 1000px;
			height: 240px;
			background: blue url() 0 0 no-repeat;
			margin: 0 auto;
		}
		.item{
			width: 140px;
			height: 240px;
			background: red url() 0 0 no-repeat;
			float: left;
			overflow: hidden;
			background-position: center;

		}
		.item:nth-child(1){

			background-image: url(./1.jpg);
			
		}
		.item:nth-child(2){
			background-image: url(./2.jpg);
			
		}
		.item:nth-child(3){
			background-image: url(./3.jpg);
			
		}
		.item:nth-child(4){
			background-image: url(./4.jpg);
			
		}
		.item:nth-child(5){
			background-image: url(./5.jpg);
			
		}
		.item:nth-child(6){
			background-image: url(./6.jpg);
			
		}
		.item:nth-child(7){
			background-image: url(./7.jpg);
			
		}
	</style>
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$('.item').hover(function() {
				$(this).stop().animate({width: "290px"},300).siblings().stop().animate({width: "115px"},300);
			}, function() {
				$('.item').stop().animate({width: "140px"},300)
			});
		})
	</script>
</head>
<body>
	<div class="out">
		<ul class="list">
			<li class="item"></li>
			<li class="item"></li>
			<li class="item"></li>
			<li class="item"></li>
			<li class="item"></li>
			<li class="item"></li>
			<li class="item"></li> 
		</ul>
	</div>
	
</body>
</html>